﻿@model IEnumerable<DAO.Server>

@{
    ViewBag.Title = "GetNotDeletedServers";
}

<script type="text/javascript">
    $('input[type="checkbox"]').click(function () {
        $('input[type="checkbox"]').not(this).prop('checked', false);
    })
</script>

<table class="table table-hover">
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.CheckBox("serverChk", new { idNot = item.id, nameNot = item.Name, descr = item.Description })
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.Description
            </td>
        </tr>
    }
</table>